// 关于菱形继承
/*
24
16
4
10
*/
#include <iostream>

using namespace std;

class Animal
{
public:
    Animal()
    {
        data = 10;
    }

    void showData(void)
    {
        cout << this->data << endl;
    }
private:
    int data;
};

class Sheep:virtual public Animal
{

};

class Tuo:virtual public Animal
{

};

class Stuo:public Tuo, public Sheep
{

};

int main(int argc, char **argv)
{

    Stuo s;
    
    cout << sizeof(Stuo) << endl;
    cout << sizeof(Sheep) << endl;
    cout << sizeof(Animal) << endl;

    s.showData();
    


    return 0;
}